<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
    <title>考生信息提交</title>
    <style>
        * {
            box-sizing: border-box;  /* 确保内边距和边框包含在宽高计算内 */
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            overflow-y: auto;
        }

        .container {
            width: 60%;
            background-color: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            max-width: 900px;
            margin-top: 20px;
        }

        h1 {
            text-align: center;
            margin-bottom: 20px;
        }

        .form-group {
            margin: 15px 0;
            display: flex;
            flex-direction: column;
        }

        label {
            font-weight: bold;
            margin-bottom: 5px;
        }

        input[type="text"], input[type="number"], input[type="date"], input[type="tel"], input[type="email"], textarea, select {
            width: 100%;
            padding: 10px;
            margin: 5px 0;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }

        select {
            font-size: 16px;
        }

        .form-group button {
            background-color: #007bff;
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            width: 100%;
        }

        .form-group button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>考生信息提交</h1>
    <form action="studentInfoSubmit" method="POST">
        <div class="form-group">
            <label for="studentId">考生ID</label>
            <input type="number" id="studentId" name="studentId" required />
        </div>
        <div class="form-group">
            <label for="name">姓名</label>
            <input type="text" id="name" name="name" required />
        </div>
        <div class="form-group">
            <label for="gender">性别</label>
            <input type="text" id="gender" name="gender" required />
        </div>
        <div class="form-group">
            <label for="category1">应届/往届</label>
            <select id="category1" name="category1" required>
                <option value="1">应届生</option>
                <option value="2">往届生</option>
                <option value="3">同等学力</option>
            </select>
        </div>
        <div class="form-group">
            <label for="category2">定向/非定向</label>
            <select id="category2" name="category2" required>
                <option value="1">定向生</option>
                <option value="2">非定向生</option>
            </select>
        </div>
        <div class="form-group">
            <label for="undergraduateSchool">本科毕业学校</label>
            <input type="text" id="undergraduateSchool" name="undergraduateSchool" required />
        </div>
        <div class="form-group">
            <label for="graduationDate">毕业日期</label>
            <input type="date" id="graduationDate" name="graduationDate" required />
        </div>
        <div class="form-group">
            <label for="undergraduateMajor">本科专业</label>
            <input type="text" id="undergraduateMajor" name="undergraduateMajor" required />
        </div>
        <div class="form-group">
            <label for="phone">手机号</label>
            <input type="tel" id="phone" name="phone" required />
        </div>
        <div class="form-group">
            <label for="emergencyPhone">紧急联系人电话</label>
            <input type="tel" id="emergencyPhone" name="emergencyPhone" required />
        </div>
        <div class="form-group">
            <label for="birthDate">出生日期</label>
            <input type="date" id="birthDate" name="birthDate" required />
        </div>
        <div class="form-group">
            <label for="idNumber">身份证号</label>
            <input type="text" id="idNumber" name="idNumber" required />
        </div>
        <div class="form-group">
            <label for="sourceLocation">生源地</label>
            <input type="text" id="sourceLocation" name="sourceLocation" required />
        </div>
        <div class="form-group">
            <label for="mail">个人邮箱</label>
            <input type="email" id="mail" name="mail" required />
        </div>
        <div class="form-group">
            <label for="undergraduateSchoolType">本科学校类型</label>
            <input type="text" id="undergraduateSchoolType" name="undergraduateSchoolType" required />
        </div>
        <div class="form-group">
            <label for="personalResume">个人简介</label>
            <textarea id="personalResume" name="personalResume" rows="4" required></textarea>
        </div>
        <div class="form-group">
            <label for="originalAppliedDiscipline">初试报考学科</label>
            <input type="text" id="originalAppliedDiscipline" name="originalAppliedDiscipline" required />
        </div>
        <div class="form-group">
            <button type="submit">提交</button>
        </div>
    </form>
</div>
</body>
</html>
